package factory.abstr;

import factory.MengNiu;
import factory.Milk;
import factory.Telunsu;
import factory.Yili;
import factory.func.MengNiuFactory;
import factory.func.TelunsuFactory;
import factory.func.YiLiFactory;

/**
 * @author wangkaiqiang
 * @title: MilkFactory
 * @projectName DesignPattern
 * @description: TODO
 * @date 2019/6/2310:24
 */
public class MilkFactory extends AbstractFactory {
    @Override
    public Milk getMengNiu() {
        return new MengNiuFactory().getMilk();
    }

    @Override
    public Milk getYiLi() {
        return new YiLiFactory().getMilk();
    }

    @Override
    public Milk getTelunsu() {
        return new TelunsuFactory().getMilk();
    }
}
